package com.eclipse.e20200122_反射.晨考_注解反射;

import java.lang.annotation.Annotation;
import java.sql.Connection;
import java.sql.DriverManager;

/*
 * 从配置文件中读取配置的类名 然后加载类 并且创建对象
 */
@Info()
public class Test {
	public static void main(String[] args) {
		Class cls = Test.class;

		Info annotation = (Info) cls.getAnnotation(Info.class);

		String name =annotation.username();
		System.out.println(name);
	}
}
